#include "paintarea.h"

PaintArea::PaintArea(QImage ima, QWidget *parent) :
    QWidget(parent)
{
    image = ima;
}

void PaintArea::paintEvent(QPaintEvent *)
{

    QPainter painter(this);
    painter.drawImage(0,0,image);
}
